package com.jdd.modules.sdkidentifyresultpushlog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdd.modules.parking.entity.ParkCarEnterLog;
import com.jdd.modules.sdkidentifyresultpushlog.entity.SdkIdentifyResultPushLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: sdk识别结果
 * @Author: jdd
 * @Date: 2021-03-31
 * @Version: V1.0
 */
public interface SdkIdentifyResultPushLogMapper extends BaseMapper<SdkIdentifyResultPushLog> {

    List<ParkCarEnterLog> getParkCarEnterLogLikePlateNo(@Param("plateNo") String plateNo);

    SdkIdentifyResultPushLog getLastTimeSdkIdentifyResultPushLogByPlate(@Param("license") String license, @Param("serialNo") String serialNo);

    List<ParkCarEnterLog> getParkCarEnterLogLikePlateStrList(@Param("plateStrList") List<String> plateStrList);

    Integer getCarTypeFromPlate(@Param("plateNo") String plateNo);

    /**
     * 根据条件模糊匹配入场记录
     *
     * @param plateStrList 模糊匹配车牌列表
     * @param parkCode     车场编码
     * @param armName      车道名称
     * @param serialNo     车道序列号
     * @param carTypeId    车辆类型ID
     * @param timeStart    入场开始时间
     * @param timeEnd      入场结束时间
     * @return 匹配到的入场记录列表
     */
    List<ParkCarEnterLog> getParkCarEnterLogLikeList(List<String> plateStrList, String parkCode, String armName, String serialNo, String carTypeId, String timeStart, String timeEnd);
}
